Get Dependents Graph
This feature allows you to get the dependents graph of a set of packages. The code sample demonstrates how to use the `getDependentsGraph` function to determine which packages depend on which other packages.
const { getDependentsGraph } = require('@changesets/get-dependents-graph');
const packages = [
{ name: 'package-a', version: '1.0.0', dependencies: { 'package-b': '^1.0.0' } },
{ name: 'package-b', version: '1.0.0', dependencies: {} }
];
const dependentsGraph = getDependentsGraph(packages);
console.log(dependentsGraph);